﻿using System;
using System.Collections.Generic;
using System.Collections;
using System.Text;
using System.Web;
using System.IO;
using System.IO.IsolatedStorage;
namespace TarreOA.TarreOABLL
{
    public class Flow_CreateFile
    {
        //public Boolean createFile(string filename, string detail) {

        //    Flow_EditForm fef = new Flow_EditForm();
        //    fef.editFlowForm(filename, detail);
        //public void WriteFile(string filename, string deatil)
        //{
            
        //    string path = Server.MapPath(".") + "/upload" + filename + ".txt";
        //    //先删除文件
        //    if (System.IO.File.Exists(path))
        //    {
        //        System.IO.File.Delete(path);
        //    }
        //    if (!System.IO.File.Exists(path))
        //    {
        //        System.IO.FileStream f = System.IO.File.Create(path);
        //        f.Close();
        //    }
        //    System.IO.StreamWriter f2 = new System.IO.StreamWriter(path, true, System.Text.Encoding.GetEncoding("gb2312"));
        //    f2.WriteLine(deatil);
        //    f2.Close();
        //    f2.Dispose();
        //}

            


        //}
        //public Boolean exchangeFile(string filename) { 
            
        //}
        //public string readFile(string filename,string detail){
            
            
        //    Flow_EditForm fef = new Flow_EditForm();
        //    fef.editFlowForm(filename, detail);

        //}
    }
}
